package com.avengers.common.bean.enums.api.epp;

import java.io.Serializable;

/**
 * @author yu.wang
 * @since 2019-09-29 16:47
 **/
public enum ApiTaskState implements Serializable {
    // 失败
    fail(0, "失败"),
    succeed(1, "成功"),
    deal(2, "处理中"),
    uploadWait(3, "等待上传认证资料"),
    uploaded(4, "等待审核"),
    audit(5, "审核中"),
    outPassSend(10, "密码已发送"),
    out(12, "转出中"),
    outSuccess(11, "转出成功"),
    outFail(13, "转出失败"),
    outCancelDeal(14, "取消转出处理中"),
    outCancel(15, "转出已取消"),
    outApproveDeal(16, "确认转出处理中");

    public final Integer value;
    public final String comment;
    private static final long serialVersionUID = 1L;

    ApiTaskState(int state, String comment) {
        this.value = state;
        this.comment = comment;
    }

    @Override
    public String toString() {
        return value.toString();
    }
}
